<%! final Logger log = Logger.getLogger("JSP.Utune Buy"); %>
<%
String strRbtId = request.getParameter("rbt");
if(strRbtId == null || strRbtId.isEmpty()) {
	response.sendRedirect("index.jsp");
	return;
}
String msisdn = request.getParameter("m");
if(msisdn == null) {
	msisdn = "";
}
String errorMsg = (String)session.getAttribute("INFO_MSG");
%>
<%@page import="wap.rockvilletech.portal.DBProc"%>
<%@page import="wap.rockvilletech.util.ParserBean"%>
<%@ page import="java.io.*,java.sql.*,java.net.*"%>
<%@ page import="org.apache.log4j.Logger" %>
<%@ include file="../includes/header.jspf"%>
<div style="padding: 5px 0px 0px 0px;">
    <div class="div_navigation" id="div_navigation">
        <a href="<%=context_Path%>" class="LinkIndex">Home</a>&nbsp;&gt;
        <a href="<%=context_Path%>/utune/index.jsp" class="LinkIndex">UTune</a>&nbsp;&gt;
        <span class="navigation_Leaf">Buy UTune</span>
    </div>
</div>
<table width="100%" align="left" cellpadding="0" cellspacing="0" style="text-align: left;font-weight: bold;">
    <tr>
        <td style="background-image:url('../images/new/top_bar_02.jpg');background-repeat: repeat-x;height:26px;">
            <b style="padding:0px 0px 0px 3px;">Buy UTune</b>
        </td>
    </tr>
</table>
<div style="padding:4px 0px 4px 10px;text-align: left;clear:both;">

	<%
    if(errorMsg != null) {
    	%><div style="color:red;display:table-cell;vertical-align:middle;"><span style="font-size:large; color:red;">*</span>&nbsp; <%=errorMsg%></div><%
    	session.removeAttribute("INFO_MSG");
    }
    %>
    <%
    DBProc db = DBProc.getInstance();
    Vector<String> vRbtDetails = db.getRbtDetails(strRbtId);
    if(!vRbtDetails.isEmpty()){//Category, Subcategory,Title,Movie_Album,Singer
    %>
    <form name="frmbuyutune" action="<%=context_Path%>/utunesubscription" method="POST">
        <input type="hidden" name="rbt" value="<%=strRbtId%>"/>
    	<table cellpadding="2" cellspacing="1">
        <tr><td>UTune Id</td><td><%=strRbtId%></td></tr>
        <tr><td>Title</td><td><%=vRbtDetails.get(2)%></td></tr>
        <tr><td>Album/Movie Name</td><td><%=vRbtDetails.get(3)%></td></tr>
        <tr><td>Artist</td><td><%=vRbtDetails.get(4)%></td></tr>
        <tr><td>Category</td><td><%=vRbtDetails.get(0)%></td></tr>
        <tr><td>Sub Category</td><td><%=vRbtDetails.get(1)%></td></tr>
        <tr><td>Enter Mobile No:</td><td><input type="text" name="m" value=<%=msisdn%> />&nbsp;<span style="font-size:large; color:red;vertical-align:middle;">*</span>
        <br><span style="font-size:small;color: gray;">Example: (03xx*******)</span></td></tr>
        <tr><td colspan="2" align="center"><input type="submit" value="Proceed" name="action"/>&nbsp;
        <a href="index.jsp"><input type="button" value="Cancel" name="cancel"/></a>
        </td></tr>
    	</table>
	</form>        
    <%
    } 
    else{
    	out.println("Data Not Available.");    
    }
    
    %>
</div>
<div style="padding-top:5px;text-decoration: underline;">
    <jsp:include page="../banner.jsp">
        <jsp:param name="w" value="<%=width%>"/>
    </jsp:include>
</div>

<%@ include file="../includes/footer.jspf"%>

<%
thisPage="Utune-UtuneBuy";
wpb.LogVisit(strIP, thisPage, strGsm,strApn,strBrand,strModel, app,request.getQueryString());
%>